package com.ryan.framework.service;

import java.io.Serializable;
import java.util.List;

import com.ryan.framework.dto.Dto;
import com.ryan.framework.model.Model;
import com.ryan.framework.tag.pagination.Page;


public interface BaseService <T extends Dto,M extends Model,PK extends Serializable>{

    public T save(T dto);
    
    public T update(T dto);
    
    public void delete(T dto);
    
    public void deleteById(PK pk);
    
    public T findById(PK pk);

	public List<T> getAll();
    
	public List<T> getAll(Page page);
}
